package com.neo.impatient.C13_Collection.C13_02_List

object ListTEst {


  def sum(lst: List[Int]) : Int = if (lst == Nil) 0 else lst.head + sum(lst.tail)


  def main(args: Array[String]): Unit = {

    val ll = 1::List(6)
    val l1 = 9::5::Nil

    println(ll)
    println(l1)

  }
}
